package cn.edu.scau.dormitory_management_system.module.examine.service;

import cn.edu.scau.dormitory_management_system.module.examine.entity.CheckinApplicationEntity;
import cn.edu.scau.dormitory_management_system.module.examine.entity.VO.CheckinApplicationVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CheckinApplicationService extends IService<CheckinApplicationEntity> {
    boolean insertCheckinApplication(CheckinApplicationEntity application);

    IPage<CheckinApplicationVO> listCheckinApplicationsByUserId(Integer deptId, Integer pageNum, Integer pageSize);

    IPage<CheckinApplicationVO> listCheckinApplications(Integer status, Integer deptId, String name, Integer pageNum, Integer pageSize);

    boolean retreatApplication(Integer id);
}
